package com.dayu.design.行为型.策略模式;

/**
 * @author dayu
 * @create 2023-12-18 23:30
 */
public enum CalcEnum {
    ADD(AddStrategy.class),
    SUBTRACT(SubtractStrategy.class);

    private Class<? extends Strategy> clazz;
    CalcEnum(Class<? extends Strategy> clazz) {
        this.clazz = clazz;
    }

    public Class<?> getClazz() {
        return clazz;
    }
}
